package com.lin.mock.pay.server.utils;

import com.lin.mock.pay.server.task.TaskManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author: linjiang
 * @date: 2024/12/16
 */
@Component
public class MockRunner implements ApplicationRunner {
    @Autowired
    private TaskManager manager;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        manager.startTask();
    }
}
